package com.sdkj.service.law;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.sdkj.dao.DaoSupport;
import com.sdkj.entity.Page;
import com.sdkj.util.PageData;

@Service("lawApplyService")
public class LawApplyService {
	@Resource(name = "daoSupport")
	private DaoSupport dao;
	
	
	/*
	 * 列表
	 */
	public List<PageData> list(Page page) throws Exception{
		return (List<PageData>)dao.findForList("LawApplyMapper.datalistPage", page);
	}


	public void update(PageData pd) throws Exception{
		dao.update("LawApplyMapper.update", pd);
		
	}


	public void save(PageData pd) throws Exception{
		dao.save("LawApplyMapper.save", pd);
		
	}

}
